﻿@using WaterRegimenMonitor.Web.Domain
@model WaterRegimenMonitor.Web.Models.ChangePasswordViewModel
@{
    ViewBag.Title = "修改登陆密码";
    Layout = "~/Views/Shared/MainLayout.cshtml";
}
@section HeadScriptLink
{
    <script src="@Url.Content("~/Scripts/JQuery/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/JQuery/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
<h2>
    更改用户密码！</h2>
<div class="form-box">
    @using (Html.BeginForm())
    {
        <div class="form-attention">
            <ul>
                <li>
                    <p>@Html.ValidationSummary(true)</p>
                    <p>@Html.ValidationMessageFor(model => model.OldPassword)</p>
                    <p>@Html.ValidationMessageFor(model => model.Password)</p>
                    <p>@Html.ValidationMessageFor(model => model.PasswordAgain)</p>
                </li>
            </ul>
        </div>
                        
        <div class="text-label">
            @Html.LabelFor(model => model.OldPassword)<span class="redStar">*</span>
        </div>
        <div class="text-input">
            @Html.PasswordFor(model => model.OldPassword, new { autocomplete = "off" })
        </div>
        <br />
                        
        <div class="text-label">
            @Html.LabelFor(model => model.Password)<span class="redStar">*</span>
        </div>
        <div class="text-input">
            @Html.PasswordFor(model => model.Password, new { autocomplete = "off" })
        </div>
        <br />
                        
        <div class="text-label">
            @Html.LabelFor(model => model.PasswordAgain)<span class="redStar">*</span>
        </div>
        <div class="text-input">
            @Html.PasswordFor(model => model.PasswordAgain, new { autocomplete = "off" })
        </div>

        <br />
        <p>
            <input type="submit" class="text-button" value="修改" />
        </p>
    }
</div>
